/**
 * @author attilax 老哇的爪子
	@since  o92 j_g_1$
 */
package com.attilax.ioc;

import com.attilax.core;
import com.attilax.db.DBX;
import com.attilax.db.DbServiceV3Q68;
import com.attilax.db.DbxMybatis;
import com.attilax.hre.UrlDslParser;
import com.google.inject.Binder;
import com.google.inject.Guice;
import com.google.inject.Inject;
import com.google.inject.Injector;
import com.google.inject.Module;

import static com.attilax.core.*;

import java.util.*;
import java.net.*;
import java.io.*;

import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
/** @author attilax 老哇的爪子
 * @since o92 j_g_1$ */
public class guiceT {
	@Inject DBX dbx;
	/** @author attilax 老哇的爪子
	 * @since o92 j_g_2
	 * 
	 * @param args */

	public static void main(String[] args) {
		// attilax 老哇的爪子 j_g_2 o92

//		guiceT c =  IocX.getBean(guiceT.class);
//		List li = c.dbx.execSql("select 1 as t");
//		System.out.println(core.toJsonStrO88(li));
		
		System.setProperty("agent_cfgfile","cfg_game.properties");
		 
		UrlDslParser UrlDslParserx ;
			String iocx="com.attilax.ioc.Ioc4agent";
			//Object o=	 com.attilax.reflect.MethodUtils.invokeStaticMethod(iocx, "getBean", (Object)UrlDslParser.class);
			UrlDslParserx = (UrlDslParser) com.attilax.reflect.MethodUtils.invokeStaticMethod(iocx, "getBean", (Object)UrlDslParser.class);
			DbServiceV3Q68 dx= (DbServiceV3Q68) com.attilax.reflect.MethodUtils.invokeStaticMethod(iocx, "getBean", (Object)DbServiceV3Q68.class);
			String sql="	select * from agent where uid='$uid$' ";
		List li=	dx.findBySql(sql);
		System.out.println(li);
			
			System.out.println( UrlDslParserx );
			System.out.println("f");
		// dbx

	}
	// attilax 老哇的爪子 j_g_1 o92
}

// attilax 老哇的爪子